package org.nstack.header.host;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;

 
@RestResponse(allTo = "inventory")
public class APIChangeHostStateEvent extends APIEvent {
     
    private HostInventory inventory;

    public APIChangeHostStateEvent() {
        super(null);
    }

    public APIChangeHostStateEvent(String apiId) {
        super(apiId);
    }

    public HostInventory getInventory() {
        return inventory;
    }

    public void setInventory(HostInventory inventory) {
        this.inventory = inventory;
    }
 
    public static APIChangeHostStateEvent __example__() {
        APIChangeHostStateEvent event = new APIChangeHostStateEvent();
        HostInventory hi = new HostInventory ();
        hi.setAvailableCpuCapacity(2L);
        hi.setAvailableMemoryCapacity(4L);
        hi.setClusterUuid(uuid());
        hi.setManagementIp("192.168.0.1");
        hi.setName("example");
        hi.setState("Enabled");
        hi.setStatus("Connected");
        hi.setClusterUuid(uuid());
        hi.setZoneUuid(uuid());
        hi.setUuid(uuid());
        hi.setTotalCpuCapacity(4L);
        hi.setTotalMemoryCapacity(4L);
        hi.setHypervisorType("KVM");
        hi.setDescription("example");
        event.setInventory(hi);

        return event;
    }

}
